<%--
    Document   : edit
    Created on : 2012-3-6, 8:48:26
    Author     : hyberbin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.json.bean.User"%>
<%--<jsp:useBean id="user" class="com.json.bean.User"></jsp:useBean>--%>
<!DOCTYPE html>
<%
    User user = (User) request.getAttribute("user");
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>修改用户</title>
    </head>
    <body>
    <center>
        <h1>修改用户</h1>
        <%if (user != null) {%>
        <form action="Update.jsp" method="post">
            <table>
                <tr>
                    <td>用户名</td>
                    <td><input type="text" name="username" size="20" value="<%=user.getUsername()%>" maxlength="20"/></td>
                </tr>  
                <tr>
                    <td>原密码</td>
                    <td><input type="password" name="oldpass" size="20" maxlength="32"/></td>
                </tr>
                <tr>
                    <td>新密码</td>
                    <td><input type="password" name="pass" size="20" maxlength="32"/></td>
                </tr>
                <tr>
                    <td>确认密码</td>
                    <td><input type="password" name="repass" size="20" maxlength="32"/></td>
                </tr>
                
            
                <tr>
                    <td><input type="hidden" name="id"  value="<%=user.getId()%>"/><input type="reset"  value="重置"/></td>
                    <td><input type="submit"  value="提交"/></td>
                </tr>
            </table>           
        </form> <%}%>
    </center>
</body>
</html>
